package com.tencent.liteav.demo.superplayer.ui.player;

import android.content.Context;
import android.util.AttributeSet;
import android.view.MotionEvent;
import android.view.View;
import com.tencent.liteav.demo.superplayer.R;
import com.tencent.liteav.demo.superplayer.ui.view.PointSeekBar;

/**
 * Window mode playback control
 * <p>
 * In addition to basic playback control, there are also gesture controls for fast forwarding and rewinding,
 * and gesture controls for adjusting brightness and volume.
 * <p>
 * 1、Click event listener {@link #onClick(View)}.
 * <p>
 * 2、Touch event listener {@link #onTouchEvent(MotionEvent)}.
 * <p>
 * 3、Progress bar event listener {@link #onProgressChanged(PointSeekBar, int, boolean)},
 * {@link #onStartTrackingTouch(PointSeekBar)}, {@link #onStopTrackingTouch(PointSeekBar)}.
 *
 * 窗口模式播放控件
 * <p>
 * 除基本播放控制外，还有手势控制快进快退、手势调节亮度音量等
 * <p>
 * 1、点击事件监听{@link #onClick(View)}
 * <p>
 * 2、触摸事件监听{@link #onTouchEvent(MotionEvent)}
 * <p>
 * 2、进度条事件监听{@link #onProgressChanged(PointSeekBar, int, boolean)}
 * {@link #onStartTrackingTouch(PointSeekBar)}
 * {@link #onStopTrackingTouch(PointSeekBar)}
 */
public class WindowPlayer extends BasicPlayer {

    public WindowPlayer(Context context) {
        super(context);
    }

    public WindowPlayer(Context context, AttributeSet attrs) {
        super(context, attrs);
    }

    public WindowPlayer(Context context, AttributeSet attrs, int defStyleAttr) {
        super(context, attrs, defStyleAttr);
    }

    @Override
    public int getLayoutId() {
        return R.layout.superplayer_vod_player_window;
    }

    @Override
    public boolean enableFingerTapFastPlay(){
        return false;
    }

}
